
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type LiveAnchorRequest struct {

	Name string `json:"name" form:"name"`

	CoverImg string `json:"cover_img" form:"cover_img"`

	Wechat string `json:"wechat" form:"wechat"`

	Phone string `json:"phone" form:"phone"`

	IsShow string `json:"is_show" form:"is_show"`

	IsDel string `json:"is_del" form:"is_del"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *LiveAnchorRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *LiveAnchorRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"name": "required",

		"cover_img": "required",

		"wechat": "required",

		"phone": "required",

		"is_show": "required",

		"is_del": "required",

		"add_time": "required",

	}
}

func (r *LiveAnchorRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LiveAnchorRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LiveAnchorRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
